package com.hfut.wxy.service;

import com.hfut.wxy.common.response.WxyPage;
import com.hfut.wxy.entity.mysql.WxyAppraise;
import com.hfut.wxy.entity.mysql.WxyOrder;

import java.util.List;

public interface IOrderService {
    Object releaseOrder(WxyOrder wxyOrder);

    boolean receiveOrder(Integer userId, Integer orderId);

    Object getOrders(WxyPage page, Integer pickUpAddressId, Float commission, Integer volume);

    Object getOrdersForOne(WxyPage page, Integer userId, List<Integer> states);

    Object companies();

    void removeOrder(Integer orderId);

    boolean confirmOrder(Integer orderId);

    Object myExecuteOrder(WxyPage page, Integer userId, List<Integer> states);

    Object finishOrder(Integer orderId);

    Object cancelOrder(Integer orderId, String description, Integer userId);

    Object confirmCancel(Integer orderId, Integer state);

    Object reRelease(Integer orderId);

    boolean appraise(WxyAppraise appraise);
}
